<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar :datas="{formData:form}" showPerson psTagType="PERSON_PENSION_QUERY"
                         personType="PERSON_ALL_EXACT" :panel="panel">
            </epl-top-bar>
            <epl-userMessage dataType="person" idCount="8" :panel="panel">
                <epl-userMessageItem title="当前待遇" :sum="''" :panel="panel">
                    <epl-column label="补扣发总月数" :value="''"></epl-column>
                    <epl-column label="补扣发总金额" :value="'￥'"></epl-column>
                </epl-userMessageItem>
            </epl-userMessage>
            <el-card class="ep-card">
                <el-form :model="form" ref="form" :rules="rules">
                    <ep-title>请选择补扣类型</ep-title>
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="补扣发类型" name="bklb" :property="form.bklb" codetype="BKLB" placeholder="请选择补扣发类型"
                                   p="R" :datas="{formData:form}" rules="this.$rules.test_noBlank"></ep-select>
                    </el-row>
                    <ep-title>请输入待遇项目补扣信息</ep-title>
                    <el-row>
                        <ep-table :data="tableData1" rowDbClick>
                            <ep-table-column editor="index" min-width="100" header="序号"></ep-table-column>
                            <ep-table-column sortable editor="select" edited name="aaa036" codetype="AAA036" header="待遇项目"></ep-table-column>
                            <ep-table-column sortable editor="text"  name="aae019" header="金额"></ep-table-column>
                            <ep-table-column sortable editor="date" format="yyyyMM" value-format="yyyyMM" date-type="date" edited name="aae041" header="补扣发开始年月"></ep-table-column>
                            <ep-table-column sortable editor="date" format="yyyyMM" value-format="yyyyMM" date-type="date" edited name="aae042" header="补扣发终止年月"></ep-table-column>
                            <ep-table-column sortable editor="select" codetype="AAE160" edited name="aae160" header="补扣发原因"></ep-table-column>
                            <ep-table-column sortable editor="text"  name="summonths" header="补扣发总月数"></ep-table-column>
                            <ep-table-column sortable editor="text"  name="summoney" header="补扣发总金额"></ep-table-column>
                            <ep-table-column header="操作" width="100" editor="button">
                                <template slot-scope="scope">
                                    <el-button type="text" size="mini" @click="deleteCurrentRow01(scope.row)">删除</el-button>
                                </template>
                            </ep-table-column>
                        </ep-table>
                    </el-row>
                    <el-row type="flex" justify="center">
                        <ep-button size="medium" type="text" name="+增加" id="doAdd01" :datas="{tableData1: tableData1}"></ep-button>
                    </el-row>
                    <ep-title>请输入精减人员发放信息</ep-title>
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="发放银行" name="aaz065" :property="form.aaz065" placeholder="请选择发放银行"
                                   p="R" :datas="{formData: form}" codetype="AAZ065" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-input  colspan="8" label="银行账号" name="aae010" :property="form.aae010" placeholder="请输入银行账号"
                                   p="R" :datas="{formData: form }" rules="this.$rules.test_noBlank"></ep-input >
                        <ep-input  colspan="8" label="银行开户名" name="aae009" :property="form.aae009" placeholder="请输入银行开户名"
                                   p="R" :datas="{formData: form }" rules="this.$rules.test_noBlank"></ep-input >
                    </el-row>
                    <el-row :gutter="10">
                        <epl-search-bank colspan="8" label="开户行行号" name="aaf002" :property="form.aaf002" placeholder="请选择开户行行号"
                                         p="R" :datas="{formData: form}" codetype="AAZ065" bankName="aaz065" show rules="this.$rules.test_noBlank"></epl-search-bank>
                        <ep-input  colspan="16" label="开户银行名称" name="bac049" :property="form.bac049"
                                   p="D" :datas="{formData: form }" rules="this.$rules.test_noBlank"></ep-input >
                    </el-row>
                    <el-row type="flex" justify="center">
                        <ep-button id="cal" api="doQuery" type="primary" top="20" bottom="20"
                                   :datas="{formData: form,tableData1:tableData1,panel:panel}"
                                   name="计算"></ep-button>
                        <ep-saveButton id="doSave" type="primary" top="20" bottom="20" ref="save" @formValidate="formValidate"
                                       :validate="['form']"
                                       :datas="{formData: form,tableData1:tableData1,panel:panel}"></ep-saveButton>
                    </el-row>
                </el-form>
            </el-card>
        </el-main>
    </el-main>
</template>

<script src="../js/ReduceOncePayJS.js"></script>
